home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / September 96 / ODF Extension bug? < prev    next >
Encoding:
Internet Message Format  |  1996-09-19  |  1.1 KB  |  [TEXT/ttxt]

  1. Subject:     ODF Extension bug?
  2. Sent:        9/11/96 10:25 AM
  3. Received:    9/11/96 10:25 AM
  4. From:        Erlend.Stav@informatics.sintef.no
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List
  7.  
  8.  
  9. I have had some probl. related to ODF´s extension mngr during release (document closedown), and wonder if it might be a bug in ODF.
  10.  
  11. I have traced the problem down to the following :
  12. - the SOMPart first deletes the ext. mngr, then the FWPart
  13. - the FWPart still has a pointer to the (now invalid) ext. mngr
  14. - my FWPart (subclass) member variable triggers a ReleaseExtension
  15. - ReleaseExtension tries to access the non-null, but invalid ext. mngr
  16.  
  17. A workaround that seems to work is to do PrivSetExtensionManager(NULL) as the first thing in my FWParts destructor.
  18.  
  19. Could someone confirm this to be a bug, or am I doing something wrong?
  20.  
  21. - Erlend
  22.  
  23. ---------------------------------------------------------
  24. Erlend Stav    Ph. SINTEF Oslo     : (+47) 22067441 
  25. Hans Osnes v. 8    Ph. SINTEF Tr.heim     : (+47) 73590371
  26. N-7030 Trondheim    Ph. Home    Tr.heim    : (+47) 73945382 
  27. NORWAY        E-mail : erlend.stav@informatics.sintef.no